package com.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.data.dto.DataInfoQueryDTO;
import com.data.entity.DataInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DataInfoMapper extends BaseMapper<DataInfo> {

    /**
     * 分页条件查询
     */
    IPage<DataInfo> selectPageByCondition(Page<DataInfo> page, @Param("query") DataInfoQueryDTO query);
    void insertIgnore(@Param("list") List<DataInfo> list);

    List<String> selectDictOptions(Integer dictType);
}